<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
<head th:replace="~{segmentation/_right_bottom_header::_header_common(~{::title},~{::link},~{::style})}">
    <meta charset="utf-8">
    <title>用户查看</title>
    <link>
    <style type="text/css"></style>
</head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend>用户查看</legend>
        </fieldset>
        <form class="layui-form" id="userFormView" action="">
<!--            <div class="layui-form-item">-->
<!--                <label class="layui-form-label">员工状态-->
<!--                </label>-->
<!--                <div class="layui-input-block">-->
<!--                    <span class="view-span" th:text="${p.staffStatus}"></span>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="layui-form-item">-->
<!--                <label class="layui-form-label">渠道状态-->
<!--                </label>-->
<!--                <div class="layui-input-block">-->
<!--                    <span class="view-span" th:text="${p.channelStatus}"></span>-->
<!--                </div>-->
<!--            </div>-->
            <div class="layui-form-item">
                <label class="layui-form-label">帐号</label>
                <div class="layui-input-block">
                    <span class="view-span" th:text="${p.account}"></span>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">手机号</label>
                <div class="layui-input-block">
                    <span class="view-span" th:text="${p.phone}"></span>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">邮箱</label>
                <div class="layui-input-block">
                    <span class="view-span" th:text="${p.mail}"></span>
                </div>
            </div>
<!--            <div class="layui-form-item">-->
<!--                <label class="layui-form-label">密码-->
<!--                </label>-->
<!--                <div class="layui-input-block">-->
<!--                    <span class="view-span" th:text="${p.password}"></span>-->
<!--                </div>-->
<!--            </div>-->
            <div class="layui-form-item">
                <label class="layui-form-label">关联推广编码</label>
                <div class="layui-input-block">
                    <span class="view-span" th:text="${p.promotionCode}"></span>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">协议</label>
                <div class="layui-input-block">
                    <span class="view-span" th:if="${p.protocol == true}" style="color: limegreen;">同意</span>
                    <span class="view-span" th:if="${p.protocol == false}" style="color: red;">拒绝</span>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">姓名</label>
                <div class="layui-input-block">
                    <span class="view-span" th:text="${p.fullName}"></span>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">昵称</label>
                <div class="layui-input-block">
                    <span class="view-span" th:text="${p.nickname}"></span>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">性别</label>
                <div class="layui-input-block">
                    <span class="view-span" th:each="item : ${@typeServiceImpl.findByParentCodeList('sex')}"
                          th:text="${item.typeName}"
                          th:if="${p.sex == item.typeValue}"
                          ></span>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">年龄</label>
                <div class="layui-input-block">
                    <span class="view-span" th:text="${p.age}"></span>
                </div>
            </div>
<!--            <div class="layui-form-item">-->
<!--                <label class="layui-form-label">头像编号-->
<!--                </label>-->
<!--                <div class="layui-input-block">-->
<!--                    <span class="view-span" th:text="${p.headPortraitId}"></span>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="layui-form-item">-->
<!--                <label class="layui-form-label">头像-->
<!--                </label>-->
<!--                <div class="layui-input-block">-->
<!--                    <span class="view-span" th:text="${p.headPortraitUrl}"></span>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="layui-form-item">-->
<!--                <label class="layui-form-label">微信代码-->
<!--                </label>-->
<!--                <div class="layui-input-block">-->
<!--                    <span class="view-span" th:text="${p.weChatCode}"></span>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="layui-form-item">-->
<!--                <label class="layui-form-label">微信唯一代码-->
<!--                </label>-->
<!--                <div class="layui-input-block">-->
<!--                    <span class="view-span" th:text="${p.weUnionId}"></span>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="layui-form-item">-->
<!--                <label class="layui-form-label">盐-->
<!--                </label>-->
<!--                <div class="layui-input-block">-->
<!--                    <span class="view-span" th:text="${p.salt}"></span>-->
<!--                </div>-->
<!--            </div>-->
            <div class="layui-form-item">
                <label class="layui-form-label">启用状态</label>
                <div class="layui-input-block">
                    <span class="view-span" th:each="item : ${@typeServiceImpl.findByParentCodeList('enableStatus')}"
                          th:text="${item.typeName}"
                          th:if="${p.enableStatus == item.typeValue}"
                          th:style="${item.typeValue == 1 ? 'color: limegreen;' : 'color: red;' }"></span>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">创建人</label>
                <div class="layui-input-block">
                    <span class="view-span" th:text="${p.createId}"></span>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">创建时间</label>
                <div class="layui-input-block">
                    <span class="view-span" th:text="${#dates.format(p.createTime, 'yyyy-MM-dd HH:mm:ss')}"></span>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">操作人</label>
                <div class="layui-input-block">
                    <span class="view-span" th:text="${p.operaterId}"></span>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">操作时间</label>
                <div class="layui-input-block">
                    <span class="view-span" th:text="${#dates.format(p.operaterTime, 'yyyy-MM-dd HH:mm:ss')}"></span>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">操作状态</label>
                <div class="layui-input-block">
                    <span class="view-span" th:each="item : ${@typeServiceImpl.findByParentCodeList('operaterStatus')}"
                          th:text="${item.typeName}"
                          th:if="${p.operaterStatus == item.typeValue}"></span>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>